<?php
/* @var $this SiteController */
/* @var $model ContactForm */
/* @var $form CActiveForm */

$this->pageTitle = Yii::app()->name . ' - Contact Us';
$this->breadcrumbs = array(
    'Contact',
);
?>


<?php if (Yii::app()->user->hasFlash('contact')): ?>

    <div class="flash-success">
        <?php echo Yii::app()->user->getFlash('contact'); ?>
    </div>

<?php else: ?>

    <!--    <p>
            If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.
        </p>-->



<?php endif; ?>




<!-- banner end -->

<!-- page-intro end -->

<!-- main-container start -->
<!-- ================ -->
<section class="main-container">

    <div class="container">
        <div class="row">

            <!-- main start -->
            <!-- ================ -->
            <div class="main col-md-8">



                <!-- page-title start -->
                <!-- ================ -->
                <h1 class="page-title">Contactanos</h1>
                <!-- page-title end -->
                <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
                <div class="alert alert-success hidden" id="contactSuccess">
                    <strong>Success!</strong> Your message has been sent to us.
                </div>
                <div class="alert alert-error hidden" id="contactError">
                    <strong>Error!</strong> There was an error sending your message.
                </div>
                <div class="contact-form">
                    <?php
                    $form = $this->beginWidget('CActiveForm', array(
                        'id' => 'contact-form',
                        'enableClientValidation' => true,
                        'clientOptions' => array(
                            'validateOnSubmit' => true,
                        ),
                    ));
                    ?>
                    <p class="note">Fields with <span class="required">*</span> are required.</p>
                    <?php echo $form->errorSummary($model); ?>
                    <div class="form-group has-feedback">

                        <?php echo $form->labelEx($model, 'name'); ?>
                        <?php echo $form->textField($model, 'name', array('placeholder' => "", 'class' => "form-control")); ?>
                        <?php echo $form->error($model, 'name'); ?>
                        <i class="fa fa-user form-control-feedback"></i>
                    </div>
                    <div class="form-group has-feedback">
                        <?php echo $form->labelEx($model, 'email'); ?>
                        <?php echo $form->textField($model, 'email', array('placeholder' => "", 'class' => "form-control")); ?>
                        <?php echo $form->error($model, 'email'); ?>
                        <i class="fa fa-envelope form-control-feedback"></i>
                    </div>
                    <div class="form-group has-feedback">
                        <?php echo $form->labelEx($model, 'subject'); ?>
                        <?php echo $form->textField($model, 'subject', array('size' => 60, 'maxlength' => 128, 'placeholder' => "", 'class' => "form-control")); ?>
                        <?php echo $form->error($model, 'subject'); ?>
                        <i class="fa fa-navicon form-control-feedback"></i>
                    </div>
                    <?php if (CCaptcha::checkRequirements()): ?>
                        <div class="row">
                            <?php echo $form->labelEx($model, 'verifyCode'); ?>
                            <div>
                                <?php $this->widget('CCaptcha'); ?>
                                <?php echo $form->textField($model, 'verifyCode', array('placeholder' => "", 'class' => "form-control")); ?>
                            </div>
                            <div class="hint">Please enter the letters as they are shown in the image above.
                                <br/>Letters are not case-sensitive.</div>
                            <?php echo $form->error($model, 'verifyCode'); ?>
                        </div>
                    <?php endif; ?>
                    <div class="form-group has-feedback">
                        <?php echo $form->labelEx($model, 'body'); ?>
                        <?php echo $form->textArea($model, 'body', array('rows' => 6, 'cols' => 50, 'class' => "form-control")); ?>
                        <?php echo $form->error($model, 'body'); ?>
                        <i class="fa fa-pencil form-control-feedback"></i>
                    </div>
                    <?php // echo CHtml::submitButton('Submit'); ?>
                    <input type="submit" value="Submit" class="btn btn-default">
                    <?php $this->endWidget(); ?>
                </div>

            </div>
            <!-- main end -->

            <!-- sidebar start -->
            <aside class="col-md-4">
                <div class="sidebar">
                    <div class="side vertical-divider-left">
                        <h3 class="title">iDea, Inc.</h3>
                        <ul class="list">
                            <li><strong></strong></li>
                            <li><i class="fa fa-home pr-10"></i>795 Folsom Ave, Suite 600<br><span class="pl-20">San Francisco, CA 94107</span></li>
                            <li><i class="fa fa-phone pr-10"></i><abbr title="Phone">P:</abbr> (123) 456-7890</li>
                            <li><i class="fa fa-mobile pr-10 pl-5"></i><abbr title="Phone">M:</abbr> (123) 456-7890</li>
                            <li><i class="fa fa-envelope pr-10"></i><a href="mailto:info@idea.com">info@idea.com</a></li>
                        </ul>
                        <ul class="social-links colored circle large">
                            <li class="facebook"><a target="_blank" href="http://www.facebook.com"><i class="fa fa-facebook"></i></a></li>
                            <li class="twitter"><a target="_blank" href="http://www.twitter.com"><i class="fa fa-twitter"></i></a></li>
                            <li class="googleplus"><a target="_blank" href="http://plus.google.com"><i class="fa fa-google-plus"></i></a></li>
                        </ul>
                    </div>
                </div>
            </aside>
            <!-- sidebar end -->

        </div>
    </div>
</section>
<!-- main-container end -->

<!-- section start -->
<!-- ================ -->
